<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 46 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts46p0{position:absolute;left:106px;top:97px;}
 .ts46p1{position:absolute;left:352px;top:97px;}
 .ts46p3{position:absolute;left:672px;top:97px;}
 .ts46p7{position:absolute;left:106px;top:113px;}
 .ts46p8{position:absolute;left:706px;top:1026px;}
 .ts46p9{position:absolute;left:331px;top:1044px;}
 .ts46p13{position:absolute;left:106px;top:146px;}
 .ts46p15{position:absolute;left:106px;top:164px;}
 .ts46p16{position:absolute;left:106px;top:183px;}
 .ts46p17{position:absolute;left:106px;top:201px;}
 .ts46p19{position:absolute;left:106px;top:220px;}
 .ts46p21{position:absolute;left:106px;top:238px;}
 .ts46p22{position:absolute;left:106px;top:256px;}
 .ts46p24{position:absolute;left:106px;top:293px;}
 .ts46p25{position:absolute;left:106px;top:312px;}
 .ts46p27{position:absolute;left:106px;top:330px;}
 .ts46p28{position:absolute;left:106px;top:348px;}
 .ts46p29{position:absolute;left:106px;top:367px;}
 .ts46p31{position:absolute;left:106px;top:385px;}
 .ts46p36{position:absolute;left:106px;top:404px;}
 .ts46p37{position:absolute;left:106px;top:422px;}
 .ts46p39{position:absolute;left:106px;top:440px;}
 .ts46p41{position:absolute;left:106px;top:459px;}
 .ts46p42{position:absolute;left:106px;top:477px;}
 .ts46p47{position:absolute;left:106px;top:496px;}
 .ts46p48{position:absolute;left:106px;top:514px;}
 .ts46p50{position:absolute;left:106px;top:532px;}
 .ts46p51{position:absolute;left:106px;top:551px;}
 .ts46p52{position:absolute;left:106px;top:569px;}
 .ts46p54{position:absolute;left:106px;top:588px;}
 .ts46p55{position:absolute;left:106px;top:606px;}
 .ts46p56{position:absolute;left:106px;top:624px;}
 .ts46p58{position:absolute;left:106px;top:643px;}
 .ts46p59{position:absolute;left:106px;top:661px;}
 .ts46p61{position:absolute;left:106px;top:680px;}
 .ts46p62{position:absolute;left:106px;top:699px;}
 .ts46p64{position:absolute;left:106px;top:717px;}
 .ts46p66{position:absolute;left:106px;top:736px;}
 .ts46p67{position:absolute;left:106px;top:754px;}
 .ts46p68{position:absolute;left:106px;top:772px;}
 .ts46p69{position:absolute;left:106px;top:791px;}
 .ts46p70{position:absolute;left:106px;top:809px;}
 .ts46p74{position:absolute;left:106px;top:828px;}
 .ts46p75{position:absolute;left:106px;top:846px;}
 .ts46p77{position:absolute;left:106px;top:864px;}
 .ts46p80{position:absolute;left:106px;top:883px;}
 .ts46p83{position:absolute;left:106px;top:901px;}
 .ts46p85{position:absolute;left:106px;top:920px;}
 .ts46p86{position:absolute;left:106px;top:939px;}
 .ts46p88{position:absolute;left:106px;top:957px;}
 .ts46p91{position:absolute;left:106px;top:975px;}
 .ts46p93{position:absolute;left:552px;top:292px;}
 .ts46p95{position:absolute;left:552px;top:304px;}
 .ts46p96{position:absolute;left:552px;top:316px;}
 .ts46p97{position:absolute;left:552px;top:329px;}
 .ts46p99{position:absolute;left:552px;top:753px;}
 .ts46p101{position:absolute;left:552px;top:765px;}
 .ts46p103{position:absolute;left:552px;top:777px;}
 .ts46p104{position:absolute;left:552px;top:789px;}

 /* Font Styles */
 .ft0p46{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p46{font-weight:normal;}
 .ft2p46{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p46{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p46{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p46{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p46{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft7p46{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft8p46{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#FFFFFF;}
 .ft9p46{font-style:normal;font-weight:normal;font-size:11px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground46{position:absolute;left:97px;top:292px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index45.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;46 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index47.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground46><img src="./background46.png" width="641" height="763" border="0" alt=""></div>
<div class=ts46p0><span class="ft0p46"> </span></div>
<div class=ts46p1><span class="ft0p46">Gravitybox Schedule Primer<span class="ft1p46"> </span></span></div>
<div class=ts46p3><span class="ft0p46">Page 44&nbsp; </span></div>
<div class=ts46p7><span class="ft2p46"> </span></div>
<div class=ts46p8><span class="ft3p46"> </span></div>
<div class=ts46p9><span class="ft4p46">1998&#45;2004 Gravitybox Software LLC<span class="ft3p46"> </span></span></div>
<div class=ts46p13><span class="ft5p46">event is raised to inform that the delete operation was completed successfully. The </span></div>
<div class=ts46p15><span class="ft5p46">event will have the appointment&#146;s old index in the ScheduleItems collections as a </span></div>
<div class=ts46p16><span class="ft5p46">parameter. Do not try to reference this appointment at this point. It has been removed. If </span></div>
<div class=ts46p17><span class="ft5p46">this index exists, it is the appointment that was next in sequence in the ScheduleItems </span></div>
<div class=ts46p19><span class="ft5p46">collection. </span></div>
<div class=ts46p21><span class="ft5p46"> </span></div>
<div class=ts46p22><span class="ft6p46">Resizing </span></div>
<div class=ts46p24><span class="ft5p46">You may set the size of an appointment in code but this is </span></div>
<div class=ts46p25><span class="ft5p46">rather prohibitive in the real world. When a schedule is </span></div>
<div class=ts46p27><span class="ft5p46">displayed, the user may be allowed to resize an </span></div>
<div class=ts46p28><span class="ft5p46">appointment. He may do this by moving the mouse over the borders of the appointment </span></div>
<div class=ts46p29><span class="ft5p46">then clicking and dragging the desired length. If resizing is allowed, the mouse pointer </span></div>
<div class=ts46p31><span class="ft5p46">will turn to an arrow, either North&#45;South or East&#45;West, depending on which is </span></div>
<div class=ts46p36><span class="ft5p46">appropriate. The pointer will change when the mouse is over the border of the </span></div>
<div class=ts46p37><span class="ft5p46">appointment, not in its interior. Keep in mind that the schedule&#146;s AllowResize property </span></div>
<div class=ts46p39><span class="ft5p46">must be true for any resizing to be done at all. </span></div>
<div class=ts46p41><span class="ft5p46"> </span></div>
<div class=ts46p42><span class="ft5p46">There AllowItemResizing property selectively allows resizing of all non&#45;read&#45;only </span></div>
<div class=ts46p47><span class="ft5p46">appointments. The possible values of the property are as follows: ircNone, </span></div>
<div class=ts46p48><span class="ft5p46">ircBottomRight, ircTopLeft, or ircAll. The value will determine how much functionality is </span></div>
<div class=ts46p50><span class="ft5p46">allowed. If this property is set to ircNone, no user resizing will be allowed. If it is set to </span></div>
<div class=ts46p51><span class="ft5p46">ircBottomRight, the appointment&#146;s length may be modified. Depending on the </span></div>
<div class=ts46p52><span class="ft5p46">Viewmode property, dragging the right or bottom appointment edge may modify the </span></div>
<div class=ts46p54><span class="ft5p46">length. If the value is ircTopLeft, only StartTime is editable. Again, depending on the </span></div>
<div class=ts46p55><span class="ft5p46">Viewmode, the StartTime may be modified, by dragging the top or left appointment </span></div>
<div class=ts46p56><span class="ft5p46">edge. Lastly, by using the ircAll value, the StartTime and Length of the appointment </span></div>
<div class=ts46p58><span class="ft5p46">may be modified. Essentially this says that both edges of the appointment may be </span></div>
<div class=ts46p59><span class="ft5p46">resized. This property affects all appointments. </span></div>
<div class=ts46p61><span class="ft5p46"> </span></div>
<div class=ts46p62><span class="ft7p46">&#145;Length modification only </span></div>
<div class=ts46p64><span class="ft7p46">Schedule1.AllowItemResizing = ircBottomRight<span class="ft5p46"> </span></span></div>
<div class=ts46p66><span class="ft5p46"> </span></div>
<div class=ts46p67><span class="ft5p46">There is additional functionality for an appointment that may </span></div>
<div class=ts46p68><span class="ft5p46">be used. Every appointment has two properties that control </span></div>
<div class=ts46p69><span class="ft5p46">resizing: MinLength and MaxLength. When the user creates </span></div>
<div class=ts46p70><span class="ft5p46">an appointment these values are set to their default value of (&#150;1). This indicates that the </span></div>
<div class=ts46p74><span class="ft5p46">appointment has no restrictions on its size. You have the option of setting these values </span></div>
<div class=ts46p75><span class="ft5p46">to restrict the user from breaking any business rules that have been defined in your </span></div>
<div class=ts46p77><span class="ft5p46">application. If the MinLength is non&#45;zero, the user may not resize the appointment </span></div>
<div class=ts46p80><span class="ft5p46">smaller than this value. Conversely, if the MaxLength is non&#45;zero, the user may not </span></div>
<div class=ts46p83><span class="ft5p46">resize the appointment larger than this value. </span></div>
<div class=ts46p85><span class="ft5p46"> </span></div>
<div class=ts46p86><span class="ft7p46">'No smaller than 30 minutes </span></div>
<div class=ts46p88><span class="ft7p46">Schedule1.ScheduleItems(3).MinLength = 30 </span></div>
<div class=ts46p91><span class="ft7p46">'No larger than 2 hours </span></div>
<div class=ts46p93><span class="ft8p46">Quick Tip </span></div>
<div class=ts46p95><span class="ft9p46">To resize an appointment, drag one </span></div>
<div class=ts46p96><span class="ft9p46">of its resizable edges to the newly </span></div>
<div class=ts46p97><span class="ft9p46">desired position. </span></div>
<div class=ts46p99><span class="ft8p46">Quick Tip </span></div>
<div class=ts46p101><span class="ft9p46">Bound an appointment&#146;s size by </span></div>
<div class=ts46p103><span class="ft9p46">using its MinLength and MaxLength </span></div>
<div class=ts46p104><span class="ft9p46">properties. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
